package com.ming.yygh.cmn.client;

import com.ming.yygh.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Light
 * @date 2021/12/6 11:30
 */
@FeignClient("service-cmn")
@Repository
public interface DictFeignClient {

    @GetMapping("/admin/cmn/dict/getName/{dictCode}/{value}")
    public Result<String> getName(@PathVariable(value = "dictCode") String dictCode,
                                  @PathVariable(value = "value") String value);

    @GetMapping("/admin/cmn/dict/getName}/{value}")
    public Result<String> getName(@PathVariable(value = "value") String value);
}
